home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
disk
/
cdrom
/
YACDP1_2.lha
/
YACDP 1.2
/
AREXX
/
ShowCurrent.yacdp
< prev
next >
Wrap
Text File
|
1994-12-05
|
1KB
|
42 lines
/* $VER: 1.2 © 1994 by Frank Würkner. Show current position. */
SIGNAL ON SYNTAX /* check syntax */
SIGNAL ON ERROR /* check if command succeeds */
OPTIONS FAILAT 6 /* ignore warnings */
ADDRESS 'YACDP' /* send to YACDP */
/* -------------------------- BEGIN OF YOUR CODE ------------------------- */
'GETVAR STATUS'
if (STATUS > 2) then do
'LOCKVARS'
'GETVAR TRACK'
'GETVAR INDEX'
'GETVAR TRACKSTART NUM=1'
'GETVAR BLOCK B0 MODE=0'
'GETVAR BLOCK B1 MODE=1'
'GETVAR BLOCK B2 MODE=2'
'GETVAR RELBLOCK R0 MODE=0'
'GETVAR RELBLOCK R1 MODE=1'
'GETVAR RELBLOCK R2 MODE=2'
'UNLOCKVARS'
say 'Track :' TRACK
say 'Index :' INDEX
say 'Abs. time :' B1' / 'B2
say 'Abs. block :' B0-TRACKSTART '['B0']'
say 'Rel. time :' R1' / 'R2
say 'Rel. block :' R0
end
/* --------------------------- END OF YOUR CODE -------------------------- */
EXIT
SYNTAX:
SAY "AREXX error at line" SIGL ":" ERRORTEXT(RC)
EXIT
ERROR:
SAY "YACDP error at line" SIGL ":" ERR
EXIT